home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n03.arc
/
FASTRUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-12
|
3KB
|
64 lines
ECHO OFF
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ FASTrun may optionally be run to speed up INITsys and SCANmax. It ║
ECHO ║ creates a directory called ))PCITK.TMP on the current disk. This ║
ECHO ║ is presumed to be a faster device than the drive containing the CHECK ║
ECHO ║ diskette. All needed files including COMMAND.COM will be copied there. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co. ║
ECHO ║ PC Magazine ■ Wolfgang Stiller ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
IF "%1"=="" goto help
IF %1==? goto help
: If the following files are not present then we've got the wrong disk
CD %1\
IF NOT EXIST %1CHKFILEC.COM GOTO BadDisk
IF NOT EXIST %1MIRDIR.COM GOTO BadDisk
IF NOT EXIST %1COMMAND.COM GOTO Badsys
GOTO Start
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax is: FASTRUN a: ║
ECHO ║ where "a:" is the drive containing the CHECK diskette ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ The current drive will have get the necessary programs and batch files ║
ECHO ║ copied to it. You should have booted from the CHECK diskette before ║
ECHO ║ running FASTRUN to make sure that a virus does not corrupt these ║
ECHO ║ programs. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:BadDisk
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ FASTrun should ONLY be run with the CHECK diskette containing the needed║
ECHO ║ toolkit files and optionally the ))A.LOG check files. You must specify ║
ECHO ║ this drive as the parameter to FASTrun. It does not appear to be in %1.║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ File MIRDIR.COM, CHKFILECCOM or were not found on Drive %1. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO Help
:Badsys
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ The CHECK diskette in drive %1 does not have a copy of the system on it.║
ECHO ║ Please check that you have a valid CHECK diskette. ║
ECHO ║ BATCH files SETUPH, SETUPH2 and SETUPF create this diskette. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:Start
CD %1\
MD \))PCITK.TMP
COPY %1*.COM \))PCITK.TMP
COPY %1*.BAT \))PCITK.TMP
PATH=\))PCITK.TMP
SET COMSPEC=\))PCITK.TMP\COMMAND.COM
cd \))PCITK.TMP
:
: Create special marker file so other batch files know about this one
TYPE PCITK.MRK >PCITK.MRK
ECHO ╔════════════════════════════════════════════════════════════════╗
ECHO ║ You are now ready to run SCANmax, SCANsys or INITsys. ║
ECHO ║ You may use either a CHECK or a CHECK-MT diskette in any drive.║
ECHO ╚════════════════════════════════════════════════════════════════╝
:End